<template>
  <Modal v-model="model">
    <p slot="header">
        小程序码
    </p>
    <div class="qrcodeBox">
      <img :src="src" alt="">
    </div>
  </Modal>
</template>
<script>
export default {
  data() {
    return {
      model: false,
      src: ''
    }
  },
  methods: {
    openModal(result) {
      this.src = `${this.$base}/qrcode/wechat_qrcode?routerEnum=${result.routerEnum}&sourceEnum=${result.sourceEnum}&text=${result.text}&width=${result.width}`
      this.model = true
    }
  }
}
</script>

